﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Defero.Web.Models.MyBugsModel>" %>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">

    <h2>
        My Bugs
    </h2>

    <table>
        <thead>
            <tr>
                <th style="width: 100px;">Reference</th>
                <th style="width: 100px;">Project</th>
                <th style="width: 100px;">Module</th>
                <th style="width: 500px;">Description</th>
                <th style="width: 100px;">Actions</th>
            </tr>
        </thead>
        <tbody>
        <% foreach (var bug in Model.AssignedBugs)
            { %>
            <tr>
                <td><%= string.Format("{0:000000}", bug.ReferenceKey) %></td>
                <td><%= bug.Project %></td>
                <td><%= bug.Module %></td>
                <td><%= bug.Description %></td>
                <td>
                    <%= Html.ActionLink("View Detail", "Detail", "BugTracker", new { Id = bug.ReferenceKey })%>
                </td>
            </tr>      
        <% } %>            
        </tbody>
    </table>

</asp:Content>
